import request from '@/utils/request'

// 查询风险分析对象列表
export function listTarget(query) {
    return request({
      url: '/risk/target/list',
      method: 'get',
      params: query
    })
  }
// 新增风险分析对象
export function addTarget(data) {
    return request({
      url: '/risk/target',
      method: 'post',
      data: data
    })
  }
// 删除风险分析对象
export function deleteTarget(riskTargetId) {
    return request({
      url: '/risk/target/'+riskTargetId,
      method: 'delete',      
    })
  } 
// 修改风险分析对象
export function updateTarget(data) {
    return request({
      url: '/risk/target',
      method: 'put',
      data: data
    })
  }
// 查询风险分析对象详细信息
export function getTargetInfo(riskTargetId) {
    return request({
      url: '/risk/target/' + riskTargetId,
      method: 'get'
    })
}      